﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Framework.Comum.DataAnnotation;
using System.ComponentModel.DataAnnotations;

namespace NaviCar.Models
{
    public class HistoricoNavegacao
    {
        [DropDownList("VeiculoPessoa")]
        public int Veiculo { get; set; }

        [DataType(DataType.Date)]
        [Required(AllowEmptyStrings = false, ErrorMessageResourceType = (typeof(Framework.Comum.Recursos.Mensagens)), ErrorMessageResourceName = "A007")]
        public DateTime Inicio { get; set; }

        [DataType(DataType.Date)]
        [Required(AllowEmptyStrings = false, ErrorMessageResourceType = (typeof(Framework.Comum.Recursos.Mensagens)), ErrorMessageResourceName = "A007")]
        public DateTime Fim { get; set; }
    }
}